package com.weixinli.beans;

import java.io.Serializable;


public class Smile implements Serializable{
	private int sid;//图片编号
	private String saddr;//图片地址
	private String sname;//图片名称
	private String stime;//上传时间
	private int w_uid;//用户编号
	private String sdec;//图片描述
	
	private Integer min;
	private Integer max;
	
	private static final long serialVersionUID = 1L;

	@Override
	public String toString() {
		return "Smile [sid=" + sid + ", saddr=" + saddr + ", sname=" + sname + ", stime=" + stime + ", w_uid=" + w_uid
				+ ", sdec=" + sdec + ", min=" + min + ", max=" + max + "]";
	}
	
	public Integer getMin() {
		return min;
	}

	public void setMin(Integer min) {
		this.min = min;
	}

	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}

	public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public String getSaddr() {
		return saddr;
	}

	public void setSaddr(String saddr) {
		this.saddr = saddr;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getStime() {
		return stime;
	}

	public void setStime(String stime) {
		this.stime = stime;
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public String getSdec() {
		return sdec;
	}

	public void setSdec(String sdec) {
		this.sdec = sdec;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((saddr == null) ? 0 : saddr.hashCode());
		result = prime * result + ((sdec == null) ? 0 : sdec.hashCode());
		result = prime * result + sid;
		result = prime * result + ((sname == null) ? 0 : sname.hashCode());
		result = prime * result + ((stime == null) ? 0 : stime.hashCode());
		result = prime * result + w_uid;
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Smile other = (Smile) obj;
		if (saddr == null) {
			if (other.saddr != null)
				return false;
		} else if (!saddr.equals(other.saddr))
			return false;
		if (sdec == null) {
			if (other.sdec != null)
				return false;
		} else if (!sdec.equals(other.sdec))
			return false;
		if (sid != other.sid)
			return false;
		if (sname == null) {
			if (other.sname != null)
				return false;
		} else if (!sname.equals(other.sname))
			return false;
		if (stime == null) {
			if (other.stime != null)
				return false;
		} else if (!stime.equals(other.stime))
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}


	public Smile(int sid, String saddr, String sname, String stime, int w_uid,
			String sdec) {
		super();
		this.sid = sid;
		this.saddr = saddr;
		this.sname = sname;
		this.stime = stime;
		this.w_uid = w_uid;
		this.sdec = sdec;
	}


	public Smile() {
		super();
	}

	
	
}
